<?php
if(!defined('IN_WOGU')) {
    exit('Access Denied');
}

interface Db_Interface
{
    public function open($config);
    public function connect();
    public function select($data, $table, $where = '', $limit = '', $order = '', $group = '', $key = '');
    public function get_one($data, $table, $where = '', $order = '', $group = '');
    public function fetch_next($type=MYSQL_ASSOC);
    public function free_result();
    public function query($sql);
    public function insert($data, $table, $return_insert_id = false, $replace = false);
    public function insert_id();
    public function update($data, $table, $where = '');
    public function delete($table, $where);
    public function affected_rows();
    public function get_primary($table);
    public function get_fields($table);
    public function check_fields($table, $array);
    public function table_exists($table);
    public function list_tables();
    public function field_exists($table, $field);
    public function num_rows($sql);
    public function num_fields($sql);
    public function result($sql, $row);
    public function error();
    public function errno();
    public function version();
    public function close();
    public function halt($message = '', $sql = '');
    public function add_special_char(&$value);
    public function escape_string(&$value, $key='', $quotation = 1);
}